#ifndef TILE_H
#define TILE_H


#include <hge.h>
#include <hgefont.h>

#include <windows.h>



//HGE *hge=0;


class tile {
private:
	void  approxTilePosition(int appValue);
public:
 tile(int tilePositionX,int tilePositionY,HTEXTURE texture,int _tile_number);

hgeSprite * sprite;
hgeRect * RectTile;
int xSprite,ySprite;
int tile_number;
bool removed;
int i,j;
bool grid;
bool hide;
bool right_button;
int tilePositionX,tilePositionY;
void addSoundToTile();
void removeSoundFromTile();
void drawTile();
void moveTile(int tileNumber,int ositionX,int PositionY);
void rotateTile();
void changeTileSize();
//void saveTileToArray();
void saveTileToFile();


int selectTileOnField(int PositionX, int PositionY,int number_of_tiles);

};

#endif